Global Index
HTML5 JS API Index > Web Storage Tutorials & Specs

StorageEvent

Extends Event.

The key attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. It represents the key being changed.

Properties
DOMString?
key
The key attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. It represents the key being changed.
DOMString?
newValue
The newValue attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. It represents the new value of the key being changed.
DOMString?
oldValue
The oldValue attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. It represents the old value of the key being changed.
Storage?
storageArea
The storageArea attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. It represents the Storage object that was affected.
DOMString
url
The url attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the address of the document whose key changed.
Constructor
StorageEvent(DOMString type, optional StorageEventInit eventInitDict)